from pydantic import BaseModel
from datetime import date


class MyItem(BaseModel):
    id: int
    title: str
    price: float
    time: date
    category_id: int


class Category(BaseModel):
    id: int
    name: str
    parentId: int
